-- GENERATED SPELL FOR [Vekh'nir Keeneye] --


function spell0_19982(pUnit, Event) --@Evasion,Self--
pUnit:FullCastSpellOnTarget(38541,pUnit)
pUnit:RegisterEvent('Sorts_19982', 10250, 1)
end

function spell1_19982(pUnit, Event) --@Gushing Wound,n/a--
pUnit:FullCastSpellOnTarget(35321,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19982', 25000, 1)
end

function Sorts_19982(pUnit, Event)
local choix_sorts_19982 = math.random(0, 1)
if choix_sorts_19982 == 0 then
pUnit:RegisterEvent('spell0_19982', 1, 1)
end
if choix_sorts_19982 == 1 then
pUnit:RegisterEvent('spell1_19982', 1, 1)
end
end

function mob19982_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19982', math.random(1500, 3000), 1)
end

function mob19982_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19982_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19982_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19982, 1, 'mob19982_Action')
RegisterUnitEvent(19982, 2, 'mob19982_Leave')
RegisterUnitEvent(19982, 3, 'mob19982_Kill')
RegisterUnitEvent(19982, 4, 'mob19982_Die')
